package com.lry.basic.algorithm.common;

import java.util.Collection;
import java.util.Iterator;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/6/27
 */
public class TestLikeSearch {
    public static void main(String[] args) {
        LikeSearch<String>search = new LikeSearch<>();
        search.put("湖南","湖南士大夫");
        search.put("湖南","海南士大夫");
        Collection<String> res = search.search("南",10);
        for (Iterator it = res.iterator();it.hasNext();){
            System.out.println(it.next());
        }
    }
}
